package action.chap5;

import action.chap4.Dish;
import action.chap4.DishUtils;

import java.util.List;
import java.util.stream.IntStream;
import java.util.stream.Stream;

public class Demo56 {
    public static void main(String[] args) {
        List<Dish> listDish = DishUtils.getListDish();
        IntStream intStream = listDish.stream().map(Dish::getCalories).mapToInt(value -> value);

        Stream<Integer> boxed = intStream.boxed();

    }
}
